package com.os.sys.repository;

import com.os.sys.model.T_SYS_Menu;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by Administrator on 2017/6/14.
 */
public interface MenuRepository extends PagingAndSortingRepository<T_SYS_Menu, Long> {
    List<T_SYS_Menu> findByEnable(int enable);
    List<T_SYS_Menu> findByParentKey(String parentKey);
}
